<%-- 
    Document   : gestionCambios
    Created on : 7/10/2013, 06:38:27 PM
    Author     : Andres
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@taglib uri="/struts-tags" prefix="s"%>
<div id="verCambio"></div>
<div id="tablaCambios">
    <h3>Cambios</h3>
    <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
        <tr>
                <th valign="top">Buscar: </th>
                <td><input type="text" class="inp-form" id="buscar" name="buscar" /></td>
                <td><input type="button" value="Buscar" class="btn" id="btnBuscar" name="btnBuscar"/></td>
        </tr>
    </table>                
    <table border="0" width="60%" cellpadding="0" cellspacing="0" id="product-table">
        <tr>
                <th class="table-header-repeat line-left minwidth-1"><a>ID Ticket</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>ID Dispositivo</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Descripcion</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Prioridad</a></th>
                <th class="table-header-repeat line-left minwidth-1"><a>Cambiar</a></th>
        </tr>
        <s:iterator value="listaCambios" status="estatus">
            <tr id="<s:property value='Ticket.IdTicket'/>-<s:property value='Componentes.Id'/>">
                <td><s:property value="Ticket.IdTicket"/></td>
                <td><s:property value="Ticket.IdDispositivo.IdDisp"/></td>
                <td><s:property value="Ticket.Descripcion"/></td>
                <td><s:property value="Ticket.Prioridad"/></td>
                <td><input type="button" id="btnCambioComponente" value="Cambiar" class="btn"/></td>
            </tr>
        </s:iterator>
    </table>
</div>